home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
SYMBMATH.H42
< prev
next >
Wrap
Text File
|
1993-11-07
|
552b
|
24 lines
4.10 Statistics
The functions:
average(x), max(x), min(x), listsum(x), length(x)
do statistical operations.
A list of numbers can be calculation on staticstics.
Example 4.10.1.
IN: p := [1, 2, 3]
IN: average(p), max(p), min(p), length(p)
OUT: 2, 3, 1, 3
Not only a list of number but also a list of symbolic data can be
operated by some statistic functions to show how to do the statistic
operation.
IN: p := [a, b, c]
IN: average(p)
OUT: 1/3*(a + b + c)
IN: listsum(p)
OUT: a + b + c
IN: length(p)
OUT: 3